﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Alphabets
{
    public partial class load_Hiragana : System.Web.UI.Page
    {
        public int? hiragana_vertical_max = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            var get_hiragana_vertical = from p in new TblAlphabetController().FetchAll() group p by p.AlphaVertical;
            if (get_hiragana_vertical.ToList().Count != 0)
            {
                foreach (var group in get_hiragana_vertical)
                {
                    foreach (TblAlphabet vertical in group)
                    {
                        if (hiragana_vertical_max < vertical.AlphaVertical)
                        {
                            hiragana_vertical_max = vertical.AlphaVertical;
                        }
                    }
                }
            }
        }
    }
}